<template>
  <div class="box1">
    <h2>我是input框中的普通输入框</h2>
    父亲给我的:<input type="text" :value="phone" @input="handleInput">

  </div>
</template>

<script>
export default {
  name: 'InputText',
  props: ['phone', 'updataXM'],
  methods: {
    handleInput(e) {
      this.updataXM(e.target.value)
    }
  },
}
</script>

<style scoped>
.box1 {
  background-color: darkkhaki;
  padding: 10px;
}
</style>